<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="description" content="pear-admin-flask">
  <meta name="keyword" content="pear-admin-flask">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <link rel="stylesheet" href="{{ url_for('static', filename='/index/layui/css/layui.css') }}"/>
  <link rel="stylesheet" href="{{ url_for('static', filename='/index/css/main.css') }}"/>
  <link rel="stylesheet" href="{{ url_for('static', filename='/index/css/load.css') }}"/>
  <style>
      .layui-nav .layui-this:after {
          display: none;
      }

      .layui-nav .layui-nav-bar {
          display: none;
      }
  </style>
  <title>搜索结果</title>
</head>
<body>
<!-- header -->
<div class="ew-header">
  <div class="ew-nav-group">
    <div class="nav-toggle"><i class="layui-icon layui-icon-more-vertical"></i></div>
    <ul class="layui-nav" lay-filter="ew-header-nav">
      {% if client_user %}
        <li class="layui-nav-item">
          <a href="{{url_for('user.get_user_info_index')}}">{{ client_user.realname }}</a>
        </li>
        <li class="layui-nav-item">
          <a href="{{url_for('user.user_logout')}}">注销</a>
        </li>
      {% else %}
        <li class="layui-nav-item">
          <a href="{{ url_for('user.user_login') }}">登录</a>
        </li>
        <li class="layui-nav-item">
          <a href="{{ url_for('user.user_register') }}" target="_blank">注册</a>
        </li>
      {% endif %}
    </ul>
  </div>
</div>
<!-- content -->
<div class="layui-container">
  <fieldset class="layui-elem-field">
    <legend class="title">搜索结果 - 全部</legend>
    <div class="layui-field-box">
      <div class="layui-tab layui-tab-brief" lay-filter="docDemoTabBrief" style="margin-top: 3%">
        <ul class="layui-tab-title">
          <li class="layui-this">全部</li>
          <li>公众号</li>
          <li>通知</li>
        </ul>
        <div class="layui-tab-content">
          <div class="layui-tab-item layui-show">
            <div class="info layui-row layui-col-space15" style="margin-top: 2%">
              <!-- for 后台缩略-->
              {% for res in results %}
              <div class="info-box layui-col-md6">
                <a href="{{ url_for("spiderIndex.get_single_result",res_id=res.id) }}">
                  <div class="info-card layui-card">
                  <div class="layui-card-header" >{{ res.title }}
                  </div>
                  <div class="info-desc layui-card-body">
{#                    {{ res.desc }}#}
                  </div>
                  <div class="info-date layui-card-body" style="display: flex;">
                    <div style="margin-left: auto;font-size: 10px">
                      {{ res.details }}&nbsp&nbsp{{ res.time }}
                    </div>
                  </div>
                </div>
                </a>
              </div>
              {% endfor %}
            </div>
          </div>
        </div>
      </div>
    </div>
  </fieldset>
</div>
{% include 'admin/common/footer.html' %}
</body>
</html>

<style>
    .info-card {
        border-radius: 5px;
        border: 1px solid #f0f1f2;
    }
    .info-card:hover{
        box-shadow: 0px 0px 2px 1px #536DFE !important;
    }
    .title {
        font-weight: 550 !important;
        color: #00B0FF !important;
        display: inline-block !important;
        line-height: 60px !important;
    }
</style>

